package cn.ztuo.bitrade.dao;

import cn.ztuo.bitrade.dao.base.BaseDao;
import cn.ztuo.bitrade.entity.TradeInfo;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.transaction.annotation.Transactional;

import javax.xml.crypto.Data;
import java.math.BigDecimal;

public interface TradeInfoDao extends BaseDao<TradeInfo> {

   /* @Transactional
    @Modifying
    @Query(value = "INSERT INTO trade_info(member_id,odf_num,trade_time,status) VALUES (:memberId,:odfNum,:tradeTime,1)",nativeQuery = true)
    Integer saveTradeInfo(@Param("memberId")Long memberId, @Param("odfNum") int odfNum, @Param("tradeTime")Data tradeTime);*/
}
